From: Elliott Mitchell Date: Fri, 17 Jul 2020 06:37:42 +0000 (-0700) Subject: d/shuffle-binaries: Make error detection/message overt X-Git-Tag: archive/raspbian/4.14.0+88-g1d1d1f5391-2+rpi1^2~48 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1f929ec3a9f884d032d51881a48deaab1d8f3497;p=xen.git d/shuffle-binaries: Make error detection/message overt The reason for the `ls` at the end is pretty straightforward if you think about it, mainly confirming the shuffle step did something. Yet that is a bit non-obvious, and the error message produced on failure is poor ("No such file or directory" simply means the script failed somewhere?). Add an overt error message. Signed-off-by: Elliott Mitchell Acked-by: Hans van Kranenburg --- diff --git a/debian/shuffle-binaries b/debian/shuffle-binaries index cff6de5428..31aa01e2bd 100755 --- a/debian/shuffle-binaries +++ b/debian/shuffle-binaries @@ -47,4 +47,7 @@ for binary in `find $t/usr/{bin,sbin} -type f`; do ) done -ls debian/shuffle-binaries.stamp +if [ ! -e "$0.stamp" ]; then + echo "Failed to shuffle binaries!" 1>&2 + exit 1 +fi